#include "LayerHomeTop.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "deprecated/CCDeprecated.h"
#include "ui/UIHelper.h"
#include "base/CCConsole.h"

USING_NS_CC;
using namespace ui;


CLayerHomeTop::CLayerHomeTop(void)
{
}


CLayerHomeTop::~CLayerHomeTop(void)
{
}

bool CLayerHomeTop::init() {
	// 1. super init first
	if ( !CLayerBase::init() )
	{
		return false;
	}

	m_Top = CSLoader::createNode("PlayerStats.csb");
	this->setContentSize(m_Top->getContentSize());

	//ui::Button* tLoginB = (ui::Button*)ui::Helper::seekWidgetByTag((cocos2d::ui::Widget*)m_Pack, 93);
	//tLoginB->addTouchEventListener(this, toucheventselector(CSceneLogin::onLogin));

	addChild(m_Top);

	return true;
}

/*
void CLayerHomeTop::onEnter() {
	LayerBase::onEnter();
}
void CLayerHomeTop::onExit() {
	LayerBase::onExit();
}

void CLayerHomeTop::update(float delta) {
	LayerBase::update(delta);
}
*/
